# !/usr/bin/python
# _*_ coding: utf-8 _*_
# @Time : 2021/5/25 2:27 下午
# @Author : liujun
# @File : blog_sort.py
# @desc : 博客分类
from typing import Optional
from pydantic import BaseModel, Field


class BlogSortAdd(BaseModel):
    name: str = Field(description='名称', max_length=20)
    seq: int = Field(description='顺序号', gt=1, le=999)
    remark: Optional[str] = Field(None, description='备注', max_length=128)
    state: bool = Field(True, description='状态：1、启用。0、禁用。')


class BlogSortUpd(BaseModel):
    name: str = Field(description='名称', max_length=20)
    seq: int = Field(description='顺序号', gt=1, le=999)
    remark: Optional[str] = Field(None, description='备注', max_length=128)
    state: bool = Field(True, description='状态：1、启用。0、禁用。')




